g++ LockControl.cpp Socket2.cpp Lock.cpp -fPIC -shared -std=c++11 -pthread -o libLockControl-ZZ.so
